hydrocarbons: When a combination of two or more different kinds of atoms bond, a compound is formed. Water, for example, is a compound of hydrogen and oxygen. Hydrocarbons are compounds that contain only hydrogen and carbon atoms. Hydrocarbons are found in petroleum, coal, and natural gas.